package cn.edu.mju.common.client;

import cn.edu.mju.common.config.FeignConfiguration;
import cn.edu.mju.common.entity.pojo.FileInfo;
import cn.edu.mju.common.entity.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author cjy
 * @data 2023/6/12 20:11
 */

@FeignClient(name = "module-file-upload",configuration = FeignConfiguration.class)
public interface IFileClient {

    @GetMapping("/file/getFile/{fileId}")
    R<FileInfo> getFile(@PathVariable(value = "fileId") String fileId);



}
